import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';

/**
 * Generated class for the ProddetailPage page.
 *
 * See https://ionicframework.com/docs/components/#navigation for more info on
 * Ionic pages and navigation.
 */

@IonicPage()
@Component({
  selector: 'page-proddetail',
  templateUrl: 'proddetail.html',
})
export class ProddetailPage {
  prod: any;
  imageurl:any;
  constructor(public navCtrl: NavController, public navParams: NavParams) {
    this.prod = this.navParams.get("prod");
    if (this.prod.imageurl != null) {
      this.imageurl = localStorage.getItem("address") + "/repair" + this.prod.imageurl;
    }
  }

  ionViewDidLoad() {
    console.log('ionViewDidLoad ProddetailPage');
  }

}
